package com.zt.securityTest.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体类
 * time: 2024.11.1 16.11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_user")
public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = -6731017202109399049L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String userName;

    private String nickName;

    @JSONField(serialize = false)
    //使用了这个注解打印User对象时将不会打印出这个字段的值
    private String password;


    private String status; //0正常，1停用

    private String email;

    private String phonenumber;

    private String sex;//0男，1女，2未知

    private String avatar;

    private String userType;

    private Long createBy;

    private Date createTime;

    private Long updateBy;

    private Date updateTime;

    private Integer deleted;//0未删


}
